################################################################################
#
# Chris Rigg
# Sam Strom
#
# ECEN 5033 - Extended Robotics Lab
#
# Spring 2008
#

.SUFFIXES: .c .o

#---------------------------------------------------------------------------
# Options
#---------------------------------------------------------------------------

TOP_DIR := ..

SRC_INCLUDE_DIR := $(TOP_DIR)/include

# Targets
OBJS = capture.o frame_parse.o perflib.o robot_comm_interface.o

# Build flags with no gui
INCLUDES = -I. -I$(SRC_INCLUDE_DIR)
CFLAGS = -g3 $(INCLUDES)
LFLAGS = -lm -lSDL

CC = gcc
MAKEDEP = makedepend


#---------------------------------------------------------------------------
# Build section
#---------------------------------------------------------------------------

%.o : %.c
		${CC} ${CFLAGS} -c $< -o $@

all: 		$(LIB) $(OBJS) capture

$(LIB):		$(OBJS)
		ar r $(LIB) $(OBJS)

capture:
		$(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o capture

clean:
	@rm -f $(LIB) $(OBJS) *.o capture *~

#===========================================================================
# Dependencies (generated by 'make dep')

capture.o: ../include/frame_parse.h ../include/perflib.h
#fgmodule.o: capture.h frame.h
#frame.o: frame.h
#test_capture.o: capture.h frame.h
#frame_parse.o: frame_parse.h
